package com.caikun.service_management.mapper;

import com.caikun.model.entity.PackageEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PackageMapper {

    /**
     * 添加套餐
     * @param packageEntity
     * @return
     */
    int insert(PackageEntity packageEntity);


    /**
     * 删除套餐
     * @param packageId
     * @return
     */
    int deleteById(Integer packageId);

    /**
     * 删除套餐详情
     * @param packageId
     * @return
     */
    int deleteByPackageId(Integer packageId);

    /**
     * 批量添加套餐服务详情
     * @param serviceIdList
     * @param packageId
     * @return
     */
    int insertBatch(List<String> serviceIdList, Integer packageId);
}
